<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>{:lang('Upload settings')}</a></li>
		</ul>
		<form method="post" class="js-ajax-form margin-top-20" role="form" action="{:url('setting/uploadPost')}">
			<div class="form-group">
				<label>Maximum number of files could be uploaded</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="max_files" title="Maximum number of files could be uploaded" placeholder="Maximum number of files could be uploaded" value="{$max_files|default=20}">
					</div>
					<div class="col-md-4">
					</div>
				</div>
				<p class="help-block">Maximum number of files could be upload at the same time is 20.</p>
			</div>
			<div class="form-group">
				<label>Block size of uploaded file</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="chunk_size" title="Block size of uploaded file KB,1M=1024KB" placeholder="Block size of uploaded file KB,1M=1024KB" value="{$chunk_size|default=512}">
					</div>
					<div class="col-md-4">
					</div>
				</div>
				<p class="help-block">Allowed block size when the file is uploaded in blocks,the smallest size is 512KB,The size can be set upon the maximum upload size limit of the server.</p>
			</div>
			<div class="form-group">
				<label>Picture file</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[image][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$file_types.image.upload_max_filesize|default=10240}">
					</div>
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[image][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$file_types.image.extensions|default='jpg,jpeg,png,gif,bmp'}">
					</div>
				</div>
				<p class="help-block">The default size of the uploaded file is 10240KB,The default file formats allowed to be uploaded are]jpg,jpeg,png,gif,bmp</p>
			</div>
			<div class="form-group">
				<label>video file</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[video][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$file_types.video.upload_max_filesize|default=10240}">
					</div>
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[video][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$file_types.video.extensions|default='mp4,avi,wmv,rm,rmvb,mkv'}">
					</div>
				</div>
				<p class="help-block">The default size of uploaded file is 10240KB,1M=1024KB，The default file formats allowed to be uploaded are mp4,avi,wmv,rm,rmvb,mkv</p>
			</div>
			<div class="form-group">
				<label>Audio file</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[audio][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$file_types.audio.upload_max_filesize|default=10240}">
					</div>
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[audio][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$file_types.audio.extensions|default='mp3,wma,wav'}">
					</div>
				</div>
				<p class="help-block">The default size of uploaded file is 10240KB,1M=1024KB，The default file formats allowed to be uploaded are mp3,wma,wav</p>
			</div>
			<div class="form-group">
				<label>Attachment</label>
				<div class="row">
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[file][upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$file_types.file.upload_max_filesize|default=10240}">
					</div>
					<div class="col-md-4">
						<input type="text" class="form-control" name="file_types[file][extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$file_types.file.extensions|default='txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'}">
					</div>
				</div>
				<p class="help-block">The default size of attachment is 10240KB,1M=1024KB，the default file formats allowed to be uploaded are ：txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar , plus all other formats
				were defined above</p>
			</div>
			<div class="form-group">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>